@charset "utf-8";
@import "var";

// 统一容器
.ks-container {
  width: 95%;
  max-width: 1024px;
  margin: 0 auto;
}

// 顶部菜单栏
header {
  position: fixed;
  top: 0;
  left: 0;
  padding: 60px 0;
  width: 100%;
  z-index: 99;
}

.header-main {
  @include flex-box;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
  position: relative;

  > h1 {
    flex-shrink: 0;
  }
}

.nav {
  font-size: 16px;
  position: relative;

  ul {
    @include flex-box;
    justify-content: flex-end;

    li {
      margin-right: 28px;
      position: relative;

      &:last-child {
        margin-right: 0;
      }

      > a {
        padding: 0 5px;
        color: #000;
        position: relative;
        transition: 0.4s 0.2s;
      }
    }
  }
}

// nav 动画效果一
.nav-animate-a {

  li {
    &:before {
      content: '';
      position: absolute;
      top: 50%;
      left: 0;
      transform: translate(0, -50%);
      width: 100%;
      height: 0;
      display: block;
      background-color: #000;
      transition: 0.4s 0.2s;
    }

    &:after {
      content: '';
      position: absolute;
      top: 50%;
      left: 0;
      transform: translate(0, -50%);
      width: 0;
      height: 2px;
      display: block;
      background-color: #000;
      transition: width 0.4s, background-color 0s 0.2s;
    }

    &:hover {

      >a {
        color: #FFF;
      }

      &:after {
        width: 100%;
        background-color: transparent;
      }

      &:before {
        height: 100%;
      }
    }
  }
}

// nav 动画效果 2

.nav-animate-js {
  position: absolute;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: #000;
  transition: .2s;
}

.top-logo {
  display: block;
  width: 175px;
  height: 55px;
  background: url(../../src/images/junni_logo_animation.png) no-repeat;
  background-size: 700px auto;
  background-position: 0 0;
}

.menu-btn-wrap {
  position: absolute;
  background-color: #c7c7cc;
}

.menu-btn {
  z-index: 999;
  position: fixed;
  display: inline-block;
  right: calc((100% - 1024px)/ 2);
  top: 90px;
  width: 30px;
  height: 30px;
  transform: translate(0, -50%);

  span {
    position: absolute;
    left: 0;
    top: 0;
    height: 4px;
    width: 100%;
    display: block;
    border-radius: 2px;
    background-color: #000;
    transition: .2s;

    &:nth-child(2) {
      margin-top: 9px;
    }

    &:nth-child(3) {
      margin-top: 18px;
    }
  }
}

.menu-btn-active {

  .header-main > h1 {
    position: relative;
    z-index: 999;
  }

  .nav {
    background-color: red;
    z-index: 998;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex!important;
    justify-content: center;
    transform: translate3d(0,0,0);
    align-items: center;

    ul {
      display: inline-block;
      li {
        text-align: center;
        margin: 40px 0;
      }
    }
  }

  .menu-btn {

    span {
      &:nth-child(1) {
        transform: rotate(45deg) translate(9px, 9px);
      }

      &:nth-child(2) {
        @include opacity-hidden;
      }

      &:nth-child(3) {
        transform: rotate(-45deg) translate(4px, -4px);
      }
    }
  }
}

// 这是统一外部样式
.ks-wrap {
  position: relative;
  width: 100%;
  padding-top: 260px;
  overflow: hidden;
}

// 分类标题栏
.topic {
  text-align: center;
  padding-bottom: 60px;

  span {
    font-size: 32px;
  }
}

// 分类块状样式
.ks-bulk {
  @include flex-box;
  justify-content: space-between;
}

.bulk-body {
  width: 30%;
  margin-right: 5%;
  position: relative;


  &:last-child {
    margin-right: 0;
  }
}

.bulk-main {
  padding: 6%;
  display: block;
  color: #000;
  position: relative;
  background-color: #c7c7cc;

  >figure {
    height: 170px;
    width: 100%;
    overflow: hidden;

    img {
      width: 100%;
      font-size: 20px;
      vertical-align: top;
    }
  }

  .bulk-title {
    font-weight: 400;
    line-height: 32px;
    height: 66px;
    margin-top: 16px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .bulk-btom {
    width: 100%;
    margin-top: 30px;
    box-sizing: border-box;

    p {
      display: inline-block;
      font-weight: 400;
      &:first-child {
        float: left;
      }

      &:last-child {
        float: right;
      }
    }

  }
}

.home-btn {
  text-align: center;
  padding-top: 100px;

  .btn {
    display: inline-block;
    height: 50px;
    width: 220px;
    line-height: 50px;
    color: red;
    font-size: 18px;
    text-align: center;
    background-color: transparent;
    border-radius: 30px;
    border: 1px solid red;
  }
}

// footer
footer {
  margin-top: 100px;
  padding-top: 30px;
  background-color: #c7c7cc;
}

.footer-nav {
  text-align: center;

  li {
    display: inline-block;
    margin: 0 20px;

    >a {
      color: #000;
      font-size: 14px;
    }
  }
}

// contact-me
.contact-main {
  .contact-me {
    position: relative;
    width: 100px;
    height: 100px;
    display: inline-block;

    >a {
      width: 42px;
      height: 42px;
      display: inline-block;
      overflow: hidden;
      @include bg-img(url("../../src/images/qq.svg"),100% 100%,center,no-repeat);
    }

    .code-img {
      z-index: -1;
      width: 100px;
      height: 100px;
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);

      img {
        opacity: 0;
        width: 0;
        transition: width 1s;
      }
    }
  }
}

.certificate {
  font-size: 12px;
  text-align: center;
  padding: 10px 0;
}














